package com.demo.controller;


import com.demo.dto.TestResults;
import com.demo.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created by 86187 on 2020/4/8.
 */
@RestController
@RequestMapping("/app/test")
public class TestController {

    @Autowired
    private TestService testService;
    @GetMapping(value = "/findInfo")
    public  List<TestResults> findInfo(){
        String id="1";
        List<TestResults> results=testService.findInfo(id);
        return results;
    }
}
